import request from '@/api/http.js'
import {
	uploadFile
} from "@/api/http.js"
const findCurrentCompany = async () => {
	return await request({
		url: '/company/find/current',
		method: "get",
	});
}
const modifyCurrentCompany = async (editForm) => {
	return await request({
		url: '/company/modify/current',
		method: 'put',
		data: editForm
	});
}
const faceReg = async (pic) => {
	return await uploadFile({
		name: 'file',
		filePath: pic,
		url: '/company/face-reg'
	});
}
const faceSearch = async (pic) => {
	return await uploadFile({
		name: 'file',
		filePath: pic,
		url: '/company/face-search'
	});
}
const bankCardOcr = async (pic) => {
	return await uploadFile({
		name: 'file',
		filePath: pic,
		url: '/company/bank-card'
	});
}
const idCardOcrFront = async (pic) => {
	return await uploadFile({
		name: 'file',
		filePath: pic,
		url: '/company/id-card/front'
	});
}
const idCardOcrBack = async (pic) => {
	return await uploadFile({
		name: 'file',
		filePath: pic,
		url: '/company/id-card/back'
	});
}
export {
	findCurrentCompany,
	modifyCurrentCompany,
	faceReg,
	faceSearch,
	bankCardOcr,
	idCardOcrFront,
	idCardOcrBack,
}